<?php
class HasherController extends BaseController{
	public function getIndex(){
		return $this->generateHasher();
	}
	
	public function getHash(){
		return $this->generateHasher();
	}

	public function generateHasher($text = NULL){
		$data = array('plain'=>FALSE);
		
		if ($text){
			$data['plain'] = $text;
		}
		else if (Input::get('plain')){
			$data['plain'] = Input::get('plain');
		}
		
		return View::make('hashMaker', $data);
	}
	
}